package com.csu.letaobackend.service;

import com.csu.letaobackend.commom.CommonResponse;
import com.csu.letaobackend.vo.CartItemVO;
import com.csu.letaobackend.vo.OrderVO;

import java.util.List;

public interface CartService {

      CommonResponse<List<CartItemVO>> getCartitemListByUsername(String username);

      CommonResponse  getCartitemNum(String username);

      CommonResponse<List<CartItemVO>> addCartitem(int itemid, int num, double price, String attrdescription, String username);

      CommonResponse<List<CartItemVO>> updateCartitem(int itemid, int num, double price, String attrdescription, String username);

      CommonResponse<List<CartItemVO>> deleteCartitem(int itemid, String username);

      CommonResponse<List<OrderVO>> createOrders(String username , int recevingid,List<Integer> couponids);

}
